package com.interview.javabase.thread;

import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.TimeUnit;

/**
 * @description: 编写一个线程不安全的list 并解决线程不安全现象
 *
 * @author: zhangshuguang@vichain.com
 * @date: 2019/06/14 13:49
 */
public class Demo10 {

    public static void main(String[] args) throws InterruptedException {
        Integer a = 122;
        aa(a);
        System.out.println(a);
    }

    private static void aa(Integer a){
        a = 111;
    }
}
